"use strict"

/**
 * 潍坊市政府采购网爬虫
 *  
 */

var Base = require("./base");
var wf_spider = new Base();
wf_spider.name = "潍坊市政府采购网";
wf_spider.encode = "GBK";

wf_spider.getPageUrl = function (pg) {
    return "http://www.ccgp-weifang.gov.cn/sdgp2014/site/channelall.jsp?curpage=" + pg + "&colcode=0301&subject=&pdate=";
};

wf_spider.getItems = function ($) {
    var items = [];
    $(".five").each(function (index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.attr("title");
        item.url = "http://www.ccgp-weifang.gov.cn" + e.attr("href");
        item.source = wf_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = wf_spider;